package dfl.bysj.service;

import com.aliyun.oss.model.OSSObject;

import javax.servlet.ServletOutputStream;
import java.io.InputStream;

public interface FileService {

    /**
     * 文件上传至阿里云
     */
    String upload(InputStream inputStream, String module, String fileName);
    /**
     * 根据路径删除文件
     * @param url
     */
    void removeFile(String url);

    void download(ServletOutputStream outputStream, String module);

    OSSObject downloadOssFile(ServletOutputStream outputStream, String fName);
}